package com.example.message.po;


import java.io.Serializable;

public class JMessageUtf8 implements Serializable {
    private Long id;

    private String journalId ="0";

    private String valueEn;

    private String valueCn;

    private String name;
    
    private Long countpage;

    private Integer fixedOptionId;
    int a ;

    public int getA() {
        return a;
    }

    public void setA(int a) {
        this.a = a;
    }

    private static final long serialVersionUID = 1L;

    public static final String ID = "id";

    public static final String JOURNAL_ID = "journal_id";

    public static final String VALUE_EN = "value_en";

    public static final String VALUE_CN = "value_cn";

    public static final String NAME = "name";

    public String getKey(){
        return null == journalId || "".equals(journalId) || "0".equals(journalId) ? name : journalId + "\t" + name;
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getJournalId() {
        return journalId;
    }

    public void setJournalId(String journalId) {
        this.journalId = journalId;
    }

    public String getValueEn() {
        return valueEn;
    }

    public void setValueEn(String valueEn) {
        this.valueEn = valueEn == null ? null : valueEn.trim();
    }

    public String getValueCn() {
        return valueCn;
    }

    public void setValueCn(String valueCn) {
        this.valueCn = valueCn == null ? null : valueCn.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getFixedOptionId() {
        return fixedOptionId;
    }

    public void setFixedOptionId(Integer fixedOptionId) {
        this.fixedOptionId = fixedOptionId;
    }
    
    public Long getCountpage() {
		return countpage;
	}

	public void setCountpage(Long countpage) {
		this.countpage = countpage;
	}


	@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("com.jour.platform.journalx.po.JMessageUtf8{");
        sb.append("id=").append(id).append(",");
        sb.append("journalId=").append(journalId).append(",");
        sb.append("valueEn=").append(valueEn).append(",");
        sb.append("valueCn=").append(valueCn).append(",");
        sb.append("name=").append(name).append(",");
        sb.append("countpage=").append(countpage);
        sb.append("}");
        return sb.toString();
    }
}